package com.oig.base.api.factory;

import com.oig.base.api.PortService;
import com.oig.base.api.fallback.PortServiceFallBackImpl;
import org.springframework.cloud.openfeign.FallbackFactory;

public class PortServiceFallBackFactory implements FallbackFactory<PortService> {

    @Override
    public PortService create(Throwable cause) {
        PortServiceFallBackImpl portServiceFallBack = new PortServiceFallBackImpl();
        portServiceFallBack.setCause(cause);
        return portServiceFallBack;
    }

}
